﻿@model RequirementAndBug.Common.Entities.RequireModels.RequireScanDetailItem

@{
    ViewBag.Title = "浏览详情";
    Layout = "~/Views/Shared/_Layout.cshtml";
}


@Scripts.Render("~/HtmlCommon/PageScripts/BugScan.js")

    



<link href="~/HtmlCommon/Styles/BugScan.css" rel="stylesheet" />
 

<<< @Html.ActionLink("返回列表","Index", "Bug")

<h2>标题：@Model.Title</h2>
   
<div class="ButtonBar">
    @foreach (RequirementAndBug.Common.Entities.RoleModels.RoleButtonRight i in ViewBag.BtnRightList)
    { 
        <input class="subBtn" type="button" value="@i.BtnName" onclick="@(i.BtnTriggerScript+"()")" />     
    }
   
</div>

<div class="scanDiv">
    @Html.LabelFor(model => model.ProCategory) : 
    @if (Model.ProCategory == 0)
    {
        @:需求
    }
    else if (Model.ProCategory == 1)
    {
        @:Bug
    }
    
</div>
 
<div class="scanDiv">
    @Html.LabelFor(model => model.TargetUserName) : @(string.IsNullOrWhiteSpace(Model.TargetUserName) ? "无" : Model.TargetUserName)
</div>

<div class="scanDiv">
    @Html.LabelFor(model => model.UserName) : @Model.UserName
</div>

<div class="scanDiv">
    @Html.LabelFor(model => model.CreateTime) : @Model.CreateTime
</div>

<div class="scanDiv">
    @Html.LabelFor(model => model.DeadlineTime) : @Model.DeadlineTime
</div>

<div class="scanDiv">
    @Html.LabelFor(model => model.FinishTime) : @Model.FinishTime
</div>

<div class="scanDiv">
    @Html.LabelFor(model => model.StageStatus) : 
    @if (Model.StageStatus == 0)
    {
        @:待开发
    }
    else if (Model.StageStatus == 1)
    {
        @:待测试
    }
    else if (Model.StageStatus == 2)
    {
        @:待验收
    }
    else if (Model.StageStatus == 3)
    {
        @:已完成
    }
</div>

<div class="scanDiv">
    @Html.LabelFor(model => model.Status) : 
    @if (Model.Status == 0)
    {
        @:禁用
    }
    else if (Model.Status == 1)
    {
        @:正常
    }
    
</div>

<div class="scanDiv">
    ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓内容正文↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓<br />
    ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
</div>
<div class="scanDiv">
  @Html.Raw(@Model.ProjectDesc)
</div>